gtk4.git
5 years agofontchooser: Add user filtering
Matthias Clasen [Tue, 8 Sep 2020 23:51:12 +0000 (19:51 -0400)]
fontchooser: Add user filtering

Add a popover that has filtering options. As a start,
allow filtering by monospace and by language coverage.

5 years agoImprove language names
Matthias Clasen [Sat, 19 Sep 2020 13:45:17 +0000 (09:45 -0400)]
Improve language names

Shorten a few of the names we pick up by removing
parentheses that make them excessively long.

5 years agoMerge branch 'font-chooser-sample-text' into 'master'
Matthias Clasen [Sat, 19 Sep 2020 13:19:28 +0000 (13:19 +0000)]
Merge branch 'font-chooser-sample-text' into 'master'

fontchooser: Determine sample text intelligently

See merge request GNOME/gtk!2546

5 years agoTry one more time to fix win32 ci
Matthias Clasen [Sat, 19 Sep 2020 04:17:43 +0000 (00:17 -0400)]
Try one more time to fix win32 ci

5 years agoUpdate British English translation
Zander Brown [Sat, 19 Sep 2020 11:42:18 +0000 (11:42 +0000)]
Update British English translation

5 years agofontchooser: Determine sample text intelligently
Matthias Clasen [Tue, 8 Sep 2020 19:14:17 +0000 (15:14 -0400)]
fontchooser: Determine sample text intelligently

Look at the languages supported by a font, and pick
a suitable sample text from the pango list of sample
texts. We can only implement this on platforms using
fontconfig, since it relies on pangofc apis.

This bumps the pango dependency to 1.47.1.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 18 Sep 2020 02:00:46 +0000 (02:00 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Cosmetic changes

See merge request GNOME/gtk!2590

5 years agogtk-demo: Cosmetic changes
Matthias Clasen [Thu, 17 Sep 2020 19:45:29 +0000 (15:45 -0400)]
gtk-demo: Cosmetic changes

Polish the text view demos a little bit.

5 years agoMerge branch 'language-names-GError-fixes' into 'master'
Matthias Clasen [Thu, 17 Sep 2020 23:34:03 +0000 (23:34 +0000)]
Merge branch 'language-names-GError-fixes' into 'master'

Language names g error fixes

See merge request GNOME/gtk!2589

5 years agolanguage-names: Do not g_free() a GError
Peter Bloomfield [Thu, 17 Sep 2020 23:34:03 +0000 (23:34 +0000)]
language-names: Do not g_free() a GError

It's NULL anyway, so freeing GError with g_free() when it's allocated with
GSlice never actually happens, but it just looks bad.

5 years agoMerge branch 'wip/wayland-respond-to-configure' into 'master'
Matthias Clasen [Thu, 17 Sep 2020 18:49:31 +0000 (18:49 +0000)]
Merge branch 'wip/wayland-respond-to-configure' into 'master'

Make sure to respond to configure events in time

Closes #2910

See merge request GNOME/gtk!2588

5 years agowayland/surface: Make sure to commit ack_configure
Jonas Ådahl [Thu, 17 Sep 2020 16:20:08 +0000 (18:20 +0200)]
wayland/surface: Make sure to commit ack_configure

We must wl_surface.commit after xdg_surface.ack_configure to make it
have an effect. We failed to do so when a configure event didn't result
in new updates, so make sure we fall back on an simple
wl_surface.commit if there was no new actual frame painted.

Closes: #2910
5 years agoUpdate Croatian translation
Goran Vidović [Thu, 17 Sep 2020 15:38:21 +0000 (15:38 +0000)]
Update Croatian translation

(cherry picked from commit 1c07a20ca4345a37fd0e3ab1395581cb396f810c)

5 years agowayland: Commit surface from cairo context
Jonas Ådahl [Thu, 17 Sep 2020 15:35:35 +0000 (17:35 +0200)]
wayland: Commit surface from cairo context

In order to make the cairo renderer/context behave more similar to how
the OpenGL and Vulkan renderer/context behaves, request a frame callback
and commit in the end frame vfunc.

This means the end frame vfunc in cairo does

 * attach buffer
 * request frame callback
 * sync surface state
 * commit

Where as e.g. the OpenGL version of the same flow does

 * attach buffer
 * request frame callback
 * sync surface state
 * eglSwapBuffers()

where eglSwapBuffers() indirectly calls wl_surface_commit().

5 years agowayland/surface: Remove 'committed' signal
Jonas Ådahl [Thu, 17 Sep 2020 14:00:40 +0000 (16:00 +0200)]
wayland/surface: Remove 'committed' signal

It wasn't used by anything anymore, lets remove it.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 17 Sep 2020 03:41:32 +0000 (03:41 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2587

5 years agogtk-demo: Fix toggle- vs checkbutton confusion
Matthias Clasen [Thu, 17 Sep 2020 03:07:21 +0000 (23:07 -0400)]
gtk-demo: Fix toggle- vs checkbutton confusion

5 years agogtk-demo: Beef up the hypertext demo
Matthias Clasen [Thu, 17 Sep 2020 02:31:34 +0000 (22:31 -0400)]
gtk-demo: Beef up the hypertext demo

Its almost a dictionary.

5 years agotextview: Properly delete anchored children
Matthias Clasen [Thu, 17 Sep 2020 02:58:58 +0000 (22:58 -0400)]
textview: Properly delete anchored children

When we remove anchors with widgets from the text
buffer, we used to call gtk_widget_destroy(), which
indirectly called gtk_container_remove() which cleared
the child properly. When gtk_widget_destroy() was
removed, we replaced the calls with gtk_widget_unparent(),
but that is not enough. Explicitly call
gtk_text_view_remove() instead - we know the parent
is a text view.

5 years agotextview: Make clickable tags work again
Matthias Clasen [Thu, 17 Sep 2020 02:30:58 +0000 (22:30 -0400)]
textview: Make clickable tags work again

We were claiming the clicks too eagerly, preventing
clickable links, e.g. in GtkAboutDialog, from working.

5 years agoPlug a memory leak in an error case
Matthias Clasen [Wed, 16 Sep 2020 19:59:49 +0000 (15:59 -0400)]
Plug a memory leak in an error case

gtk_show_uri() not freeing the error after showing
it to the user.

Pointed out by Peter Bloomfield in #3166

5 years agoMerge branch 'wip/sadiq/headerbar-demo' into 'master'
Matthias Clasen [Wed, 16 Sep 2020 23:12:26 +0000 (23:12 +0000)]
Merge branch 'wip/sadiq/headerbar-demo' into 'master'

gtk-demo: Add a switch to headerbar demo

See merge request GNOME/gtk!2571

5 years agoUpdate Italian translation
Milo Casagrande [Wed, 16 Sep 2020 07:43:11 +0000 (07:43 +0000)]
Update Italian translation

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 16 Sep 2020 02:56:08 +0000 (02:56 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

gtk-demo: Add another demo

See merge request GNOME/gtk!2584

5 years agogtk-demo: Add another demo
Matthias Clasen [Wed, 16 Sep 2020 02:17:34 +0000 (22:17 -0400)]
gtk-demo: Add another demo

Show how to add a context menu to a custom widget,
and how to make a GtkPicture lookalike.

5 years agoMerge branch 'stack-add-child' into 'master'
Matthias Clasen [Wed, 16 Sep 2020 02:22:36 +0000 (02:22 +0000)]
Merge branch 'stack-add-child' into 'master'

stack: Add gtk_stack_add_child

Closes #3165

See merge request GNOME/gtk!2583

5 years agostack: Add gtk_stack_add_child
Matthias Clasen [Tue, 15 Sep 2020 22:37:56 +0000 (18:37 -0400)]
stack: Add gtk_stack_add_child

The name of children is not essential, so add
a way to add children without providing one.

Fixes: #3165
5 years agoMerge branch 'master.win32' into 'master'
Matthias Clasen [Tue, 15 Sep 2020 11:12:27 +0000 (11:12 +0000)]
Merge branch 'master.win32' into 'master'

Some more fixes for Windows

Closes #3157

See merge request GNOME/gtk!2580

5 years agoMerge branch 'wip/jimmac/dnd-green' into 'master'
Matthias Clasen [Tue, 15 Sep 2020 11:04:59 +0000 (11:04 +0000)]
Merge branch 'wip/jimmac/dnd-green' into 'master'

Adwaita: update tango color for DND

Closes #3158

See merge request GNOME/gtk!2581

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 15 Sep 2020 11:04:54 +0000 (11:04 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2582

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Tue, 15 Sep 2020 10:54:31 +0000 (10:54 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

See merge request GNOME/gtk!2579

5 years agoAdwaita: update tango color for DND
Jakub Steiner [Tue, 15 Sep 2020 10:18:55 +0000 (12:18 +0200)]
Adwaita: update tango color for DND

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3158

5 years agogdksurface-win32.c: Fix display of CSD windows
Chun-wei Fan [Tue, 15 Sep 2020 07:37:32 +0000 (15:37 +0800)]
gdksurface-win32.c: Fix display of CSD windows

Since the changes to GDK to use surface subtypes, CSD windows were
broken because we did not set the window styles properly.  Fix this by
first acquiring whether decorations are used by the GtkWindow, and based
on that result we set the decorations that we want to use accordingly
and so apply them.

Thanks to Matt Jakeman for investigating into the issue and providing
pointers to a proposed fix.

Fixes issue #3157, besides the part where window sizes are not correct
since that is likely caused a separate issue.

5 years agogdkevents-win32.c: Clean up WM_ACTIVATE handling a bit
Chun-wei Fan [Tue, 8 Sep 2020 08:09:46 +0000 (16:09 +0800)]
gdkevents-win32.c: Clean up WM_ACTIVATE handling a bit

We can group some things together, to make things a little bit more clear

5 years agodemos: Fix minesweeper demos on Windows
Chun-wei Fan [Mon, 7 Sep 2020 08:28:48 +0000 (16:28 +0800)]
demos: Fix minesweeper demos on Windows

Make sure the callback functions in the .ui files are exported, so that
those functions can be recognized at runtime so that things run
properly.

5 years agoinspector: Remove unsued function
Timm Bäder [Tue, 15 Sep 2020 03:28:31 +0000 (05:28 +0200)]
inspector: Remove unsued function

5 years agolistbox: Activate single-click rows if n_press >= 1
Timm Bäder [Thu, 10 Sep 2020 05:01:18 +0000 (07:01 +0200)]
listbox: Activate single-click rows if n_press >= 1

Quickly clicking rows should always activate the row if
single-click-activation is enabled. Before, only the first click
(n_press == 1) would activate the row.

5 years agopopover: Only destroy arrow render node if position changed
Timm Bäder [Thu, 10 Sep 2020 04:02:34 +0000 (06:02 +0200)]
popover: Only destroy arrow render node if position changed

5 years agosizegroup demo: Fix a checkbutton/togglebutton mixup
Timm Bäder [Thu, 10 Sep 2020 03:59:11 +0000 (05:59 +0200)]
sizegroup demo: Fix a checkbutton/togglebutton mixup

5 years agofilechooserwidget: Plug a memory leak
Timm Bäder [Thu, 10 Sep 2020 03:32:47 +0000 (05:32 +0200)]
filechooserwidget: Plug a memory leak

g_list_store_append refs the file

5 years agoemojichooser: Fix typo in css class
Timm Bäder [Sat, 5 Sep 2020 11:43:03 +0000 (13:43 +0200)]
emojichooser: Fix typo in css class

5 years agolistbox: Add preconditions to remove()
Timm Bäder [Fri, 4 Sep 2020 06:48:45 +0000 (08:48 +0200)]
listbox: Add preconditions to remove()

5 years agobuild: Unify two if statements
Timm Bäder [Fri, 4 Sep 2020 05:41:01 +0000 (07:41 +0200)]
build: Unify two if statements

They both check glib_minor_req.is_odd()

5 years agoinspector: Fix huge listbox rows
Timm Bäder [Wed, 2 Sep 2020 04:28:03 +0000 (06:28 +0200)]
inspector: Fix huge listbox rows

This is handled by .rich-list

5 years agoDocument some API as widget-implementation only
Matthias Clasen [Tue, 15 Sep 2020 00:28:44 +0000 (20:28 -0400)]
Document some API as widget-implementation only

Using gtk_widget_insert_before on a complex container
is a *bad* idea; it will mess up the containers bookkeeping
of its children and can easily lead to failure and crashes.

5 years agogtk-demo: Add more detail to the dnd demo text
Matthias Clasen [Mon, 14 Sep 2020 21:49:16 +0000 (17:49 -0400)]
gtk-demo: Add more detail to the dnd demo text

5 years agogtk-demo: Add some keywords
Matthias Clasen [Mon, 14 Sep 2020 21:33:12 +0000 (17:33 -0400)]
gtk-demo: Add some keywords

Make the builder demo show up in searches for toolbar and
menubar.

5 years agogtk-demo: Improve the builder demo
Matthias Clasen [Mon, 14 Sep 2020 21:06:34 +0000 (17:06 -0400)]
gtk-demo: Improve the builder demo

Make the keyboard shortcuts work.

5 years agogtk-demo: Improve the builder demo
Matthias Clasen [Mon, 14 Sep 2020 20:51:05 +0000 (16:51 -0400)]
gtk-demo: Improve the builder demo

Make the toolbar look right.

5 years agogtk-demo: More space
Matthias Clasen [Mon, 14 Sep 2020 20:21:13 +0000 (16:21 -0400)]
gtk-demo: More space

Increase the inter-paragraph spacing in the info
text, to make paragraphs more clearly separated.

5 years agogtk-demo: Cosmetic change
Matthias Clasen [Mon, 14 Sep 2020 20:20:52 +0000 (16:20 -0400)]
gtk-demo: Cosmetic change

5 years agogtk-demo: Add some details
Matthias Clasen [Mon, 14 Sep 2020 20:11:11 +0000 (16:11 -0400)]
gtk-demo: Add some details

5 years agoUpdate Latvian translation
Rūdolfs Mazurs [Mon, 14 Sep 2020 19:45:03 +0000 (19:45 +0000)]
Update Latvian translation

5 years agoMerge branch 'issue-2923' into 'master'
Matthias Clasen [Mon, 14 Sep 2020 17:01:54 +0000 (17:01 +0000)]
Merge branch 'issue-2923' into 'master'

Annotate the expression array as "nullable"

Closes #2923

See merge request GNOME/gtk!2578

5 years agoAnnotate the expression array as "nullable"
Emmanuele Bassi [Mon, 14 Sep 2020 16:00:23 +0000 (17:00 +0100)]
Annotate the expression array as "nullable"

While it's a bit dubious whether array+length annotations should be
marked as "nullable", we do this elsewhere in the API, so might as well
be consistent.

In practice, the array argument is only ever allowed to be NULL iff the
length argument is 0; annotations are static, so if somebody decides to
pass a NULL argument with a non-zero value, they will get a run time
critical error, instead of a compile time one, which is somewhat counter
to the point of annotating the API in the first place.

Fixes: #2923
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 14 Sep 2020 15:44:51 +0000 (15:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

widget-factory: Fix the toggle buttons on page 3

See merge request GNOME/gtk!2577

5 years agowidget-factory: Fix the toggle buttons on page 3
Matthias Clasen [Mon, 14 Sep 2020 15:19:39 +0000 (11:19 -0400)]
widget-factory: Fix the toggle buttons on page 3

They should not both be active initially.

5 years agoUpdate POTFILES.skip
Piotr Drąg [Mon, 14 Sep 2020 14:55:31 +0000 (16:55 +0200)]
Update POTFILES.skip

5 years agoMerge branch 'wip/jimmac/navlist-expander-whitespace' into 'master'
Matthias Clasen [Mon, 14 Sep 2020 12:59:05 +0000 (12:59 +0000)]
Merge branch 'wip/jimmac/navlist-expander-whitespace' into 'master'

Adwaita: navigation list expander whitespace

See merge request GNOME/gtk!2575

5 years agoMerge branch 'wip/jimmac/gridview-whitespace' into 'master'
Matthias Clasen [Mon, 14 Sep 2020 12:49:52 +0000 (12:49 +0000)]
Merge branch 'wip/jimmac/gridview-whitespace' into 'master'

Wip/jimmac/gridview whitespace

Closes #3164

See merge request GNOME/gtk!2574

5 years agoAdwaita: navigation list expander whitespace
Jakub Steiner [Mon, 14 Sep 2020 12:31:23 +0000 (14:31 +0200)]
Adwaita: navigation list expander whitespace

 - Address https://gitlab.gnome.org/GNOME/gtk/-/issues/3138#note_910476

5 years agoicon-browser: use content-view
Jakub Steiner [Mon, 14 Sep 2020 10:03:17 +0000 (12:03 +0200)]
icon-browser: use content-view

- make content prominent by using content-view style for the main grid.

5 years agoAdwaita: whitespace for the grid
Jakub Steiner [Mon, 14 Sep 2020 09:58:13 +0000 (11:58 +0200)]
Adwaita: whitespace for the grid

- separate labels
- 12px margins around cells

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3164

5 years agogtk-demo: Add a switch to headerbar demo
Mohammed Sadiq [Mon, 14 Sep 2020 05:45:20 +0000 (11:15 +0530)]
gtk-demo: Add a switch to headerbar demo

We don't have any demos with a switch in headerbar.

5 years agoMerge branch 'wip/jimmac/natigation-sidebar-whitespace' into 'master'
Matthias Clasen [Mon, 14 Sep 2020 11:13:52 +0000 (11:13 +0000)]
Merge branch 'wip/jimmac/natigation-sidebar-whitespace' into 'master'

Wip/jimmac/natigation sidebar whitespace

Closes #3138

See merge request GNOME/gtk!2572

5 years agoMerge branch 'wip/jimmac/cut-finger' into 'master'
Jakub Steiner [Mon, 14 Sep 2020 10:34:52 +0000 (10:34 +0000)]
Merge branch 'wip/jimmac/cut-finger' into 'master'

assets: adjust gesture graphic

Closes #3074

See merge request GNOME/gtk!2573

5 years agoassets: adjust gesture graphic
Jakub Steiner [Sat, 12 Sep 2020 08:12:28 +0000 (10:12 +0200)]
assets: adjust gesture graphic

- quick, somebody on the internet is offended!

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3074

5 years agoAdwaita: navigation-sidebar spacing
Jakub Steiner [Mon, 14 Sep 2020 09:48:43 +0000 (11:48 +0200)]
Adwaita: navigation-sidebar spacing

- split from placessidebar as it's more generic

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3138

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 14 Sep 2020 04:45:07 +0000 (04:45 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2570

5 years agogtk-demo: Improve the scrolling demo
Matthias Clasen [Mon, 14 Sep 2020 03:25:05 +0000 (23:25 -0400)]
gtk-demo: Improve the scrolling demo

Add an fps label to the scrolling demo.

5 years agogtk-demo: Impove the fishbowl demo
Matthias Clasen [Mon, 14 Sep 2020 03:42:55 +0000 (23:42 -0400)]
gtk-demo: Impove the fishbowl demo

Use tnum for the fps label to avoid jiggling.

5 years agogtk-demo: Use gdk_frame_clock_get_fps
Matthias Clasen [Mon, 14 Sep 2020 03:42:13 +0000 (23:42 -0400)]
gtk-demo: Use gdk_frame_clock_get_fps

Remove another copy of this code in the theme
switching benchmark.

5 years agoinspector: Use gdk_frame_clock_get_fps
Matthias Clasen [Mon, 14 Sep 2020 03:32:33 +0000 (23:32 -0400)]
inspector: Use gdk_frame_clock_get_fps

5 years agoAdd gdk_frame_clock_get_fps
Matthias Clasen [Mon, 14 Sep 2020 03:31:17 +0000 (23:31 -0400)]
Add gdk_frame_clock_get_fps

We already have more than one copy of this code
in GTK, so just export this function.

5 years agomain: Reshuffle debug code
Matthias Clasen [Mon, 14 Sep 2020 02:48:29 +0000 (22:48 -0400)]
main: Reshuffle debug code

Mode all the debug flags related code together,
to make gtkmain.c a bit less messy.

5 years agoDrop support for GTK_TEST_TOUCHSCREEN
Matthias Clasen [Mon, 14 Sep 2020 02:44:32 +0000 (22:44 -0400)]
Drop support for GTK_TEST_TOUCHSCREEN

This environment variable is undocumented, and you can
just use GTK_DEBUG=touchscreen insead.

5 years agoMove version-related functions to gtkversion.c
Matthias Clasen [Mon, 14 Sep 2020 02:23:06 +0000 (22:23 -0400)]
Move version-related functions to gtkversion.c

This is just an internal cleanup, to make gtkmain.c
a bit less messy.

5 years agoClean up debug flags code a bit
Matthias Clasen [Mon, 14 Sep 2020 02:10:25 +0000 (22:10 -0400)]
Clean up debug flags code a bit

Use the GtkDebugFlags enum, since we have it.

5 years agoiconview: Small doc additions
Matthias Clasen [Mon, 14 Sep 2020 01:49:11 +0000 (21:49 -0400)]
iconview: Small doc additions

5 years agoDrop gtk_render_slider from headers
Matthias Clasen [Mon, 14 Sep 2020 01:47:39 +0000 (21:47 -0400)]
Drop gtk_render_slider from headers

The function does not exist.

5 years agocolorchooser: Bring back gtk_color_chooser_widget_new
Matthias Clasen [Mon, 14 Sep 2020 01:44:50 +0000 (21:44 -0400)]
colorchooser: Bring back gtk_color_chooser_widget_new

This was removed by accident in commit f392fbfb6d6f1116728b.

5 years agodocs: Misc updates
Matthias Clasen [Mon, 14 Sep 2020 01:30:41 +0000 (21:30 -0400)]
docs: Misc updates

Pick up a number of symbols that have been missed,
and drop GtkAccelLabel.

5 years agodocs: Add new check button apis
Matthias Clasen [Mon, 14 Sep 2020 01:18:08 +0000 (21:18 -0400)]
docs: Add new check button apis

5 years agodocs: Some touchups to the migration guide
Matthias Clasen [Mon, 14 Sep 2020 01:17:51 +0000 (21:17 -0400)]
docs: Some touchups to the migration guide

5 years agoNEWS: Updates
Matthias Clasen [Sun, 13 Sep 2020 23:54:27 +0000 (19:54 -0400)]
NEWS: Updates

5 years agoMerge branch 'gtk-demo-demo' into 'master'
Matthias Clasen [Sun, 13 Sep 2020 23:37:22 +0000 (23:37 +0000)]
Merge branch 'gtk-demo-demo' into 'master'

Gtk demo demo

See merge request GNOME/gtk!2569

5 years agoMerge branch 'update-default-palette' into 'master'
Matthias Clasen [Sun, 13 Sep 2020 23:28:57 +0000 (23:28 +0000)]
Merge branch 'update-default-palette' into 'master'

colorchooserwidget: Update default palette

See merge request GNOME/gtk!2568

5 years agocolorchooserwidget: Update default palette
nana-4 [Sun, 13 Sep 2020 21:59:26 +0000 (06:59 +0900)]
colorchooserwidget: Update default palette

This makes it completely in line with the new GNOME HIG color palette.

See https://gitlab.gnome.org/GNOME/gtk/-/issues/3146

5 years agogtk-demo: Don't offer to run titles
Matthias Clasen [Sun, 13 Sep 2020 21:55:10 +0000 (17:55 -0400)]
gtk-demo: Don't offer to run titles

When a group is selected (such as 'Benchmark'),
make the run button insensitive - there is nothing
to run.

5 years agoDemo thyself
Matthias Clasen [Sun, 13 Sep 2020 21:37:05 +0000 (17:37 -0400)]
Demo thyself

Make gtk-demo show itself as a useful example.

5 years agoMerge branch 'demo-keywords' into 'master'
Matthias Clasen [Sun, 13 Sep 2020 21:13:21 +0000 (21:13 +0000)]
Merge branch 'demo-keywords' into 'master'

gtk-demo: add keywords to filtering

See merge request GNOME/gtk!2567

5 years agogtk-demo: Add keywords to demos
Matthias Clasen [Sun, 13 Sep 2020 18:59:33 +0000 (14:59 -0400)]
gtk-demo: Add keywords to demos

Add the names of the main widgets as keywords to
our demos, but also things like "game". This helps
finding relevant demos in our growing list. You
can now for example type "label", and find the
"error states" and "links" demos showing GtkLabel
features.

5 years agogtk-demo: Support keywords for search
Matthias Clasen [Sun, 13 Sep 2020 15:37:23 +0000 (11:37 -0400)]
gtk-demo: Support keywords for search

Filter the sidebar on keywords that can be provided
by the demos. We extract keywords from the doc comment
at the top of each demo source by looking for words that
look like class names. We also allow to specify keywords
explicitly.

5 years agogtk-demo: Ignore some lines in info
Matthias Clasen [Sun, 13 Sep 2020 14:45:03 +0000 (10:45 -0400)]
gtk-demo: Ignore some lines in info

Ignore lines starting with # in the info comment at
the top of source files. This will be used to add
keywords for search in following commits.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sun, 13 Sep 2020 18:39:12 +0000 (18:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2566

5 years agogtk-demo: Add another demo
Matthias Clasen [Sun, 13 Sep 2020 14:37:32 +0000 (10:37 -0400)]
gtk-demo: Add another demo

This one is a more or less direct copy of the
settings dialog from widget-factory, demonstrating
error states and builder scopes.

5 years agoUpdate Latvian translation
Rūdolfs Mazurs [Sun, 13 Sep 2020 12:30:52 +0000 (12:30 +0000)]
Update Latvian translation

5 years agoUpdated French translation
Claude Paroz [Sun, 13 Sep 2020 08:46:33 +0000 (10:46 +0200)]
Updated French translation

5 years agogtk-demo: Make F11 toggle fullscreen
Matthias Clasen [Sun, 13 Sep 2020 06:31:41 +0000 (02:31 -0400)]
gtk-demo: Make F11 toggle fullscreen

In the video player demo, we have a button to make
the window fullscreen, but no easy way back. Add
the usual F11 keybinding, to make things at least
somewhat recoverable.

5 years agovideo: Make autoplay work
Matthias Clasen [Sun, 13 Sep 2020 05:56:56 +0000 (01:56 -0400)]
video: Make autoplay work

We were setting things up in the wrong order, so
autoplay had no effect when you using gtk_video_set_file().